<?php

namespace common\models\meeting;

use Yii;

/**
 * This is the model class for table "meetingenroll".
 *
 * @property integer $id
 * @property string $name
 * @property string $sex
 * @property string $phone
 * @property string $email
 * @property string $company
 * @property string $address
 * @property string $label_img
 * @property integer $created_at
 */
class Meetingenroll extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'meetingenroll';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
			[['name', 'sex', 'phone', 'email', 'company', 'address'], 'required'],
			[['email'], 'email'],
            [['created_at'], 'integer'],
            [['name', 'sex', 'phone', 'email', 'company', 'address', 'label_img'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'name' => Yii::t('app', 'Name'),
            'sex' => Yii::t('app', 'Sex'),
            'phone' => Yii::t('app', 'Phone'),
            'email' => Yii::t('app', 'Email'),
            'company' => Yii::t('app', '单位名称'),
            'address' => Yii::t('app', 'Address'),
            'label_img' => Yii::t('app', '人物头像'),
            'created_at' => Yii::t('app', 'Created At'),
        ];
    }
   
}
